local PLAYER_BUTTON_SCALE = .5
local PETFRAME_SHIFTED_X = 60
local PETFRAME_SHIFTED_Y = -75

function BuffBarFrame_OnLoad(self)
	PetFrame:SetPoint("TOPLEFT",PlayerFrame,"TOPLEFT",PETFRAME_SHIFTED_X,PETFRAME_SHIFTED_Y)
end

function BuffBar_OnLoad(self)
	self:SetScale(PLAYER_BUTTON_SCALE)
end

function BuffBarButton_OnLoad(self)

	local parent=self:GetParent();
	local id = self:GetAttribute("action");
	local unit = parent:GetAttribute("unit");
	local startid = parent:GetAttribute("action");
	-- set our unit and action id's
	self:SetAttribute("unit",unit)
	self:SetAttribute("action",startid+id-1)
	-- Call the default OnLoad to finish setting up
	ActionButton_OnLoad(self)
end
